Skip to content

fix(config): restore --es behavior when event.subscribe.enable=false#6756

Closed
halibobo1205 wants to merge 1 commit intotronprotocol:release_v4.8.2from
halibobo1205:feat/fix_cli_event
Closed

fix(config): restore --es behavior when event.subscribe.enable=false#6756
halibobo1205 wants to merge 1 commit intotronprotocol:release_v4.8.2from
halibobo1205:feat/fix_cli_event

Conversation

@halibobo1205
Copy link
Copy Markdown
Collaborator

What does this PR do?

The previous flow built EventPluginConfig/FilterQuery only when the config bean had enable=true, so passing the deprecated --es CLI flag against a config with enable=false set eventSubscribe=true but left the plugin config null, causing "Failed to load eventPlugin" at startup.
Split applyConfigParams into atomic-bind (eventSubscribe, contractParseSwitch) and buildEventDerivatives (EPC + FilterQuery). The derivative build now runs once at the end of setParam, after CLI overrides have settled, so --es produces a valid EPC and --contract-parse-enable is not clobbered.

Why are these changes required?
restore --es behavior when event.subscribe.enable=false
This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

The previous flow built EventPluginConfig/FilterQuery only when the
config bean had enable=true, so passing the deprecated --es CLI flag
against a config with enable=false set eventSubscribe=true but left
the plugin config null, causing "Failed to load eventPlugin" at
startup.

Split applyConfigParams into atomic-bind (eventSubscribe,
contractParseSwitch) and buildEventDerivatives (EPC + FilterQuery).
The derivative build now runs once at the end of setParam, after CLI
overrides have settled, so --es produces a valid EPC and
--contract-parse-enable is not clobbered.
@halibobo1205
Copy link
Copy Markdown
Collaborator Author

use #6757

@halibobo1205 halibobo1205 removed this from the GreatVoyage-v4.8.2 milestone May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant